

export const userStore = {
    namespaced:true,  // 独立范围 
    state:{
        username:'zkl',
        age:19,
    },
    actions:{

    },
    mutations:{
        changeUsername(state,payload){
            state.username = payload 
        },
        changeAge(state,payload){
            state.age+=payload 
        }
    },
    getters:{

    }
}